package com.liuguangzhou.model;

import lombok.Data;

import java.io.Serializable;

/**
 * @Classname User
 * @Author liuguangzhou
 * @Date 2020-04-06
 */
@Data
public class User implements Serializable {
    private String id;
    private String userName;
    private Integer age;

    public static String getKeyName(){
        return "user";
    }

    public static String getLoginTimeLockKey(String userName){
     return "user:loginLock:fail"+ userName;
    }


    public static String getLoginValueKey(String userName){
        return "user:loginCount:fail"+ userName;
    }
}
